import Vue from 'vue'
import App from './App.vue'
import router from './router'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import axios from '@/utils/request.js'

// 全局封装 面包屑组件
import plugin from './plugin'
import Channel from '@/components/Channel.vue'
import Cover from '@/components/Cover.vue'

Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.prototype.$http = axios
Vue.use(plugin)
Vue.component('Channel', Channel)
Vue.component('Cover', Cover)
// 事件总线-非父子传值-setting/layout
Vue.prototype.$eventBus = new Vue()

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
